#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);
    int a[33];
    for(int i=1;i<=33;i++){
        cin>>a[i];
    }
    cout<<5<<endl<<19<<endl<<7<<endl<<1;
    fclose(stdin);
    fclose(stdout);
    return 0;
}
